package com.cqkjxy.commons.validations.annotations;



import com.cqkjxy.commons.validations.UniqueColumnsValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = UniqueColumnsValidator.class)
@Documented
public @interface UniqueColumns {
    UniqueColumn[] value();
    String message() default "";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}